package com.cssy.yd.basic.dao;

import com.cssy.yd.basic.entity.BasicMeasurementUnitDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 * ��ݷ��ʶ���ӿ�
 * @since 2013-07-05
 */
public interface BasicMeasurementUnitDAO {

    /**
     * �������
     * @param basicMeasurementUnitDO
     * @return ������ݵ�����
     */
    public String insertBasicMeasurementUnitDO(BasicMeasurementUnitDO basicMeasurementUnitDO) throws DataAccessException;

    /**
     * ͳ�Ƽ�¼��
     * @param basicMeasurementUnitDO
     * @return ����ļ�¼��
     */
    public Integer countBasicMeasurementUnitDOByExample(BasicMeasurementUnitDO basicMeasurementUnitDO) throws DataAccessException;

    /**
     * ���¼�¼
     * @param basicMeasurementUnitDO
     * @return ��Ӱ�������
     */
    public Integer updateBasicMeasurementUnitDO(BasicMeasurementUnitDO basicMeasurementUnitDO) throws DataAccessException;

    /**
     * ��ȡ�����б�
     * @param basicMeasurementUnitDO
     * @return �����б�
     */
    public List<BasicMeasurementUnitDO> findListByExample(BasicMeasurementUnitDO basicMeasurementUnitDO) throws DataAccessException;

    /**
     * ��������ȡbasicMeasurementUnitDO
     * @param id
     * @return basicMeasurementUnitDO
     */
    public BasicMeasurementUnitDO findBasicMeasurementUnitDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * ɾ���¼
     * @param id
     * @return ��Ӱ�������
     */
    public Integer deleteBasicMeasurementUnitDOByPrimaryKey(String id) throws DataAccessException;

    public List<BasicMeasurementUnitDO> find(SearchConditions scs) throws DataAccessException;

	public Integer count(SearchConditions scs) throws DataAccessException;
	
	public List<BasicMeasurementUnitDO> findWl(String s) throws DataAccessException;
	
	public List<BasicMeasurementUnitDO> findUnit(String s) throws DataAccessException;
}